package com.sq.abstractClass;

import javax.swing.*;
import java.awt.*;
import java.io.File;

public abstract class Text extends JTextArea {
    public UpLabel upLabel;
    public LowLabel lowLabel;
    protected File file;
    protected String encoding;
    public String lastHash;
    protected Text() {
        setFont(new Font("宋体", Font.PLAIN, 25));
    }

    public abstract void setEncoding(String encoding);
    public abstract void setFile(File fileName);
    protected abstract void addCaretListener();
    public abstract File getFile();
    public abstract String getEncoding();
}
